import { HttpRequest } from "../utils/http";

const http = new HttpRequest("elk", 60000);

const isDev = () => {
  return process.env.NODE_ENV === "development";
};

// 后端-保存BDC日志
export const logStash = http.Post(isDev() ? "/logstash" : "/fx/logstash");
